#include <stdio.h>
int main()
{
     int a;
     int b;
     int n;
     scanf("%d%d%d",&a,&b,&n);
     int c=a+b;
     int t=a;
     int d=b;
     int x,y;
     int i;
     printf("%d %d\n",a,b);
     
     for(i=3;i<=n;i++)
     {
     	printf("%d\n",c);
     	x=d; t=x;
     	y=c; d=y;
     	c=d+t;
     	
	 }
	 return 0;
 
}
